package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class GroupingOperation implements SetFunctionSpecification {

    private int beginIndex;
    private int endIndex;
    private List<ColumnReference> columnReferenceList;

    public GroupingOperation(int beginIndex,
                             int endIndex,
                             List<ColumnReference> columnReferenceList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.columnReferenceList = columnReferenceList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public List<ColumnReference> getColumnReferenceList() {
        return columnReferenceList;
    }

}
